<template>
  <div>
    {{ count }}
    <h2>ComB</h2>
    <ComC></ComC>
  </div>
</template>

<script setup>
import ComC from '@/components/ComC.vue'
import { titleKey, countKey } from '@/key.js';

import { inject } from 'vue';

const { count } = inject(countKey)
</script>